# -*- coding:utf-8 -*-
from fastapi import Request
from app.entity.system import SysLog
from core.curd import CRUDBase, IBaseDao


class SysLogDao(IBaseDao):
    """
    测试模块服务层
    """

    def __init__(self, req: Request):
        self.db_session = req.app.state.db_async_session
        self.base = CRUDBase(SysLog)

    @classmethod
    async def instance(cls, req: Request):
        return cls(req)